summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlat9nq <22451773+lat9nq@users.noreply.github.com>2023-05-04 00:11:34 +0200
committerlat9nq <22451773+lat9nq@users.noreply.github.com>2023-05-04 00:11:53 +0200
commita71498d163029c29285e5bef7098f2fe265196fa (patch)
tree0462218c685321f8a19e092a8eb188dbe8cc2b64
parentconfigure_graphics: No there isn't a hyphen in VSync (diff)
downloadyuzu-a71498d163029c29285e5bef7098f2fe265196fa.tar
yuzu-a71498d163029c29285e5bef7098f2fe265196fa.tar.gz
yuzu-a71498d163029c29285e5bef7098f2fe265196fa.tar.bz2
yuzu-a71498d163029c29285e5bef7098f2fe265196fa.tar.lz
yuzu-a71498d163029c29285e5bef7098f2fe265196fa.tar.xz
yuzu-a71498d163029c29285e5bef7098f2fe265196fa.tar.zst
yuzu-a71498d163029c29285e5bef7098f2fe265196fa.zip
-rw-r--r--src/yuzu/bootmanager.cpp4
-rw-r--r--src/yuzu/configuration/configure_graphics.cpp2
-rw-r--r--src/yuzu/qt_common.cpp4
-rw-r--r--src/yuzu/qt_common.h4
4 files changed, 7 insertions, 7 deletions
diff --git a/src/yuzu/bootmanager.cpp b/src/yuzu/bootmanager.cpp
index d0c72b820..59d226113 100644
--- a/src/yuzu/bootmanager.cpp
+++ b/src/yuzu/bootmanager.cpp
@@ -241,7 +241,7 @@ public:
explicit RenderWidget(GRenderWindow* parent) : QWidget(parent), render_window(parent) {
setAttribute(Qt::WA_NativeWindow);
setAttribute(Qt::WA_PaintOnScreen);
- if (YuzuQtCommon::GetWindowSystemType() == Core::Frontend::WindowSystemType::Wayland) {
+ if (QtCommon::GetWindowSystemType() == Core::Frontend::WindowSystemType::Wayland) {
setAttribute(Qt::WA_DontCreateNativeAncestors);
}
}
@@ -884,7 +884,7 @@ bool GRenderWindow::InitRenderTarget() {
}
// Update the Window System information with the new render target
- window_info = YuzuQtCommon::GetWindowSystemInfo(child_widget->windowHandle());
+ window_info = QtCommon::GetWindowSystemInfo(child_widget->windowHandle());
child_widget->resize(Layout::ScreenUndocked::Width, Layout::ScreenUndocked::Height);
layout()->addWidget(child_widget);
diff --git a/src/yuzu/configuration/configure_graphics.cpp b/src/yuzu/configuration/configure_graphics.cpp
index 6f5bc8d90..76e5b7499 100644
--- a/src/yuzu/configuration/configure_graphics.cpp
+++ b/src/yuzu/configuration/configure_graphics.cpp
@@ -507,7 +507,7 @@ void ConfigureGraphics::RetrieveVulkanDevices() try {
using namespace Vulkan;
auto* window = this->window()->windowHandle();
- auto wsi = YuzuQtCommon::GetWindowSystemInfo(window);
+ auto wsi = QtCommon::GetWindowSystemInfo(window);
vk::InstanceDispatch dld;
const Common::DynamicLibrary library = OpenLibrary();
diff --git a/src/yuzu/qt_common.cpp b/src/yuzu/qt_common.cpp
index 1b533ee40..5ac9fe310 100644
--- a/src/yuzu/qt_common.cpp
+++ b/src/yuzu/qt_common.cpp
@@ -12,7 +12,7 @@
#include <qpa/qplatformnativeinterface.h>
#endif
-namespace YuzuQtCommon {
+namespace QtCommon {
Core::Frontend::WindowSystemType GetWindowSystemType() {
// Determine WSI type based on Qt platform.
QString platform_name = QGuiApplication::platformName();
@@ -52,4 +52,4 @@ Core::Frontend::EmuWindow::WindowSystemInfo GetWindowSystemInfo(QWindow* window)
return wsi;
}
-} // namespace YuzuQtCommon
+} // namespace QtCommon
diff --git a/src/yuzu/qt_common.h b/src/yuzu/qt_common.h
index b366adee6..9c63f08f3 100644
--- a/src/yuzu/qt_common.h
+++ b/src/yuzu/qt_common.h
@@ -6,10 +6,10 @@
#include <QWindow>
#include "core/frontend/emu_window.h"
-namespace YuzuQtCommon {
+namespace QtCommon {
Core::Frontend::WindowSystemType GetWindowSystemType();
Core::Frontend::EmuWindow::WindowSystemInfo GetWindowSystemInfo(QWindow* window);
-} // namespace YuzuQtCommon
+} // namespace QtCommon